package com.huanri.patterns.memento;

/**
 * @author Nemo
 * @date 2012-8-20 at MyCode
 */
public class Originator {

	private String status ;
	
	public Memento createMemento(){
		return new Memento(status);
	}
	public void setMementoStatus(Memento memento){
		status = memento.getStatus();
	}
	public void showStatus(){
		System.out.println(status);
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	
}
